<T:ViewBase x:Class="WPFExcelReport.TARTBQ02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQWERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQWERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQABT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQABT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQWAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQWAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQFARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQFARBE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQDESS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQDESS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQCOL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQCOL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABQBESCH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwARTBQ.ABQBESCH}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsARTBQ,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwARTBQ}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwARTBQ, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="ABQMANDANT"
                                    Binding="{Binding Path=ABQMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQKUNDNR"
                                    Binding="{Binding Path=ABQKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQWERK"
                                    Binding="{Binding Path=ABQWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQABT"
                                    Binding="{Binding Path=ABQABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQWAKZ"
                                    Binding="{Binding Path=ABQWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQART"
                                    Binding="{Binding Path=ABQART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQVAR"
                                    Binding="{Binding Path=ABQVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQFARBE"
                                    Binding="{Binding Path=ABQFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQDESS"
                                    Binding="{Binding Path=ABQDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQCOL"
                                    Binding="{Binding Path=ABQCOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQCOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQBESCH"
                                    Binding="{Binding Path=ABQBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQZUSTAND"
                                    Binding="{Binding Path=ABQZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLIEFNR"
                                    Binding="{Binding Path=ABQLIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQAENZL"
                                    Binding="{Binding Path=ABQAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQAENB"
                                    Binding="{Binding Path=ABQAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQAEND"
                                    Binding="{Binding Path=ABQAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQNEUB"
                                    Binding="{Binding Path=ABQNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQNEUD"
                                    Binding="{Binding Path=ABQNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQSTAKZ"
                                    Binding="{Binding Path=ABQSTAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQSTAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQPRIO"
                                    Binding="{Binding Path=ABQPRIO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQPRIO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLART"
                                    Binding="{Binding Path=ABQLART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLVAR"
                                    Binding="{Binding Path=ABQLVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLARTBEZ"
                                    Binding="{Binding Path=ABQLARTBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLARTBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLFARBE"
                                    Binding="{Binding Path=ABQLFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLDESS"
                                    Binding="{Binding Path=ABQLDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLCOL"
                                    Binding="{Binding Path=ABQLCOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLCOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLBESCH"
                                    Binding="{Binding Path=ABQLBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLFARBBEZ"
                                    Binding="{Binding Path=ABQLFARBBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLFARBBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQPRGRP"
                                    Binding="{Binding Path=ABQPRGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQPRGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQURLAND"
                                    Binding="{Binding Path=ABQURLAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQURLAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQEAN"
                                    Binding="{Binding Path=ABQEAN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQEAN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQMINMG"
                                    Binding="{Binding Path=ABQMINMG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQMINMG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQMEEH"
                                    Binding="{Binding Path=ABQMEEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQMEEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQTOLV"
                                    Binding="{Binding Path=ABQTOLV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQTOLV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQTOLB"
                                    Binding="{Binding Path=ABQTOLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQTOLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQLIEFZT"
                                    Binding="{Binding Path=ABQLIEFZT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQLIEFZT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQPRUEFANW"
                                    Binding="{Binding Path=ABQPRUEFANW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQPRUEFANW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABQFILLER"
                                    Binding="{Binding Path=ABQFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABQFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
